package com.ptszyxx.popose.common.enums;

import com.ysg.utils.YStringUtil;

public enum RankEnum {
    girl("2", "女神榜", "威望值:"),//type的值是要传给后台的
    nabob("3", "富豪榜", "富豪值:"),
    love("1", "恩爱榜", "恩爱值:"),
    boy("4", "男神榜", "富豪值:"),
    family("5", "家族榜", "家族值:"),
    charm("6", "魅力榜", "魅力值:");

    private String type;
    private String name;
    private String value;

    RankEnum(String type, String name, String value){
        this.type = type;
        this.name = name;
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public static RankEnum get(String name){
        RankEnum[] values = values();
        for (RankEnum item: values) {
            if (YStringUtil.eq(item.getName(), name)){
                return item;
            }
        }
        return null;
    }

}
